﻿namespace View
{
    public class DishIconProxy : IconProxy
    {
        private static readonly string IconPattern = "DishIcon/{0}";
        
        private int _iconId;

        public void SetIconId(int iconId)
        {
            if (_iconId != iconId)
            {
                _iconId = iconId;
                Load(string.Format(IconPattern, _iconId));
            }
        }

        public int GetIconId()
        {
            return _iconId;
        }
    }
}